/*
 * @Author: zhuwenzhi
 * @Date: 2024-06-19 21:05:38
 * @LastEditTime: 2024-06-19 22:48:00
 * @LastEditors: zhuwenzhi
 * @FilePath: /dva-quickstart/src/router.js
 * @Description: 
 */
import React from 'react';
import { Router, Route, Switch } from 'dva/router';
import IndexPage from './routes/IndexPage';
import Products from './routes/Products';
import Users from './routes/Users';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/" exact component={IndexPage} />
        <Route path="/products" exact component={Products} />
        <Route path="/users" exact component={Users} />
      </Switch>
    </Router>
  );
}

export default RouterConfig;
